<nz-form-item>
  <nz-form-label *ngIf="labelWidth!=0" [nzSpan]="labelWidth" [nzRequired]="required"
                 nzNoColon="true">{{name}}</nz-form-label>
  <nz-form-control [nzSpan]="inputWidth" [nzErrorTip]="nzErrorTip" style="text-align: left;top: 5px;" #inputControl>
    <nz-select *ngIf="!showTree"
               [(ngModel)]="value"
               [nzDisabled]="disabled"
               [nzAllowClear]="allowClear"
               nzPlaceHolder=""
               [nzMode]="selectType"
               (ngModelChange)="onChange()"
               (nzBlur)="blur()"
               style="width: 100%;top: -5px;"
    >
      <nz-option *ngFor="let item of options"
                 nzValue="{{item.value}}"
                 nzLabel="{{item.name}}"
                 [nzHide]="item.hide"></nz-option>
    </nz-select>

    <nz-tree-select *ngIf="showTree"
                    style="width: 100%"
                    [nzExpandedKeys]="expandKeys"
                    [nzNodes]="nodes"
                    [nzDisabled]="disabled"
                    [nzDefaultExpandAll]="expandAll"
                    nzPlaceHolder=""
                    [(ngModel)]="value"
                    [nzMultiple]="isMultiple"
                    (ngModelChange)="onChange()"
    >
    </nz-tree-select>

    <input dhl-input-element hidden [value]="value"/>
    <button class="reset-button" hidden (click)="reset()"></button>
  </nz-form-control>
</nz-form-item>

